﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Model_Att> list = v.data("list") as List<Model_Att>; %>

<%if (list.Count > 0){ %>
<% foreach (Model_Att row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.typename %>-<%=row.typeremark %>" <%if (bllPowerGroupService.powercheck("article", "modelattredit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('<%=row.typename %>_{modelmanage_attr_edit}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelAttrEdit, row.Id) %>?mid=<%=row.mid %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'attedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%">
                <%if(row.islockin==1){ %>
				<input type="checkbox" name="selectinfoid" value="<%=row.Id %>">
				<%} %>
			</td>
			<td width="6%">
				<input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>">
				<input type="text" name="pid" size="3" value="<%=row.pid %>" class="infoInput" >
			</td>
			<td width="6%"><%=row.Id %></td>
			<td width="18%"><%=row.typename %></td>
			<td width="17%"><%=row.attrname %></td>
			<td width="12%"><%=row.inputtype %></td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.issearch==1){ %><span class="select_ok" title="_{open_botton_title}"></span><%}else{ %><span class="select_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isvalidate==1){ %><span class="select_ok" title="_{open_botton_title}"></span><%}else{ %><span class="select_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.islockin==0){ %><span class="select_ok" title="_{open_botton_title}"></span><%}else{ %><span class="select_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{open_botton_title}"></span><%}else{ %><span class="audit_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="10%" id="infotype">
				<%if (bllPowerGroupService.powercheck("article", "modelattredit", modelpowergroup)) { %>
				<table>
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<%=row.typename %>_{modelmanage_attr_edit}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelAttrEdit, row.Id) %>?mid=<%=row.mid %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'attedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="attedit<%=row.Id %>" href="#body" title="_{modelmanage_attr_edit}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>